x86/hvm: allow guest to use clflushopt and clwb
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 12 Jan 2016 10:28:58 +0000 (11:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Jan 2016 10:28:58 +0000 (11:28 +0100)
commit3cb82a561382466208db50d41d6401e2cc4819dd
tree1284f3bafe81d1dd66ddba08a06f79e484d7fcd2
parent165f36d5fa60ade72f691fbb81aad0a2cadaca37
x86/hvm: allow guest to use clflushopt and clwb

Pass CPU features CLFLUSHOPT and CLWB into HVM domain so that those two
instructions can be used by guest.

The specification of above two instructions can be found in
https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com> for tools bits
tools/libxc/xc_cpufeature.h
tools/libxc/xc_cpuid_x86.c